<div class="top">
<div class="top index">
    <a href="index.html#!/pages/index_user" class="">我的订单</a>
    <span class="text-little text-gray">/</span>
    <a href="index.html#!/pages/index_vip" class="">会员俱乐部</a>
    <span class="text-little text-gray">/</span>
    <a href="#" class="">积分攻略</a>
    <span class="text-little text-gray">/</span>
    <a href="#" class="win-homepage">设为首页</a>
    <span class="text-little text-gray">/</span>
    <a href="#" class="win-favorite">加入收藏</a>
    <div class="right">
        <a href="login.html#!/pages/login" id="login_a" class="text-gray">登陆</a> 
        <span class="text-little text-gray">/</span> <a href="login.html#!/pages/reg" id="reg_a" class="text-gray">免费注册</a>
    </div>
</div>

<div class="clear"></div>
</div>
<script type="text/vm">
function() {
	var $body = $(document.body);
	$body.on('click', '.nav_panel ul .nav_li', function() {
		$('.nav_panel ul .nav_li').removeClass('on')
		$(this).addClass('on')
	})
	$body.on("click", ".win-favorite", function() {
		var sURL = document.URL;
		var sTitle = document.title;
		try {
			window.external.addFavorite(sURL, sTitle);
		} catch (e) {
			try {
				window.sidebar.addPanel(sTitle, sURL, "");
			} catch (e) {
				alert("加入收藏失败，请使用Ctrl+D进行添加");
			}
		}
	});
	
}
</script>